<!doctype html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<title>企业人事管理系统</title>
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
	<link rel="stylesheet" href="./static/css/font.css">
	<link rel="stylesheet" href="./static/css/weadmin.css">
	<link rel="stylesheet" href="./index.css">
	<script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
	<script src="static/js/jquery.1.11.3.min.js"></script>
	<script src="static/js/util/util.js"></script>
	<script>
        layui.use(['layer'], function () {
            //var parameter = GetRequest();
			//获取本地缓存数据
			var user = JSON.parse(localStorage.getItem("user"));
            get("/user/getUserInfo",{uid:user.uid},function (data) {
                $("#userName").html(data.username);
            });
        });
        //获取url中"?"符后的字串
        function GetRequest() {
            var url = location.search;
            var theRequest = new Object();
            if (url.indexOf("?") != -1) {
                var str = url.substr(1);
                strs = str.split("&");
                for(var i = 0; i < strs.length; i ++) {
                    theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
                }
            }
            return theRequest;
        }
	</script>
</head>

<body>
	<!-- 顶部开始 -->
	<div class="container">
		<div class="logo">
			<a href="#">企业人事管理系统</a>
		</div>
		<div class="left_open">
			<i title="展开左侧栏" class="iconfont">&#xe699;</i>
		</div>
		<ul class="layui-nav right" lay-filter="">
			<li class="layui-nav-item">
				<a href="#" id="userName"></a>
			</li>
			<li class="layui-nav-item to-index">
				<a href="/login.html">退出</a>
			</li>
		</ul>

	</div>
	<!-- 顶部结束 -->
	<!-- 中部开始 -->
	<!-- 左侧菜单开始 -->
	<div class="left-nav">
		<div id="side-nav">
			<ul id="nav">
				<li>
					<a href="javascript:;">
						<i class="iconfont">&#xe6b8;</i>
						<cite>我的信息</cite>
						<i class="iconfont nav_right">&#xe613;</i>
					</a>
					<ul class="sub-menu">
						<li>
							<a _href="./pages/admin/edit.html">
								<i class="iconfont">&#xe6a7;</i>
								<cite>信息修改</cite>
							</a>
						</li>
					</ul>
				</li>
				<li>
					<a href="javascript:;">
						<i class="iconfont">&#xe6b8;</i>
						<cite>部门管理</cite>
						<i class="iconfont nav_right">&#xe613;</i>
					</a>
					<ul class="sub-menu">
						<li>
							<a _href="./pages/department/add.html">
								<i class="iconfont">&#xe6a7;</i>
								<cite>添加部门</cite>

							</a>
						</li>
						<li>
							<a _href="./pages/department/adjust.html">
								<i class="iconfont">&#xe6a7;</i>
								<cite>部门调整</cite>
							</a>
						</li>
					</ul>
				</li>
				<li>
					<a href="javascript:;">
						<i class="iconfont">&#xe705;</i>
						<cite>职位管理</cite>
						<i class="iconfont nav_right">&#xe697;</i>
					</a>
					<ul class="sub-menu">
						<li>
							<a _href="./pages/job/add.html">
								<cite>添加职位</cite>
							</a>
						</li>
						<li>
							<a _href="./pages/job/adjust.html">
								<cite>职位调整</cite>
							</a>
						</li>
					</ul>
				</li>
				<li>
					<a href="javascript:;">
						<i class="iconfont">&#xe723;</i>
						<cite>员工管理</cite>
						<i class="iconfont nav_right">&#xe697;</i>
					</a>
					<ul class="sub-menu">
						<li>
							<a _href="./pages/employee/add.html">
								<cite>添加员工</cite>
							</a>
						</li>
						<li>
							<a _href="./pages/employee/adjust.html">
								<cite>档案修改</cite>
							</a>
						</li>
						<li>
							<a _href="./pages/employee/statusAdjust.html">
								<cite>在职状态</cite>
							</a>
						</li>
					</ul>
				</li>
				<li>
					<a href="javascript:;">
						<i class="iconfont">&#xe726;</i>
						<cite>公告管理</cite>
						<i class="iconfont nav_right">&#xe697;</i>
					</a>
					<ul class="sub-menu">
						<li>
							<a _href="./pages/notice/add.html">
								<cite>添加公告</cite>
							</a>
						</li>
						<li>
							<a _href="./pages/notice/adjust.html">
								<cite>公告调整</cite>
							</a>
						</li>
						<li>
							<a _href="./pages/notice/email.html">
								<cite>发送邮件</cite>
							</a>
						</li>
						<li>
							<a _href="./pages/notice/message.html">
								<cite>发送短信</cite>
							</a>
						</li>
					</ul>
				</li>
				<li>
					<a href="javascript:;">
						<i class="iconfont">&#xe6ce;</i>
						<cite>下载管理</cite>
						<i class="iconfont nav_right">&#xe697;</i>
					</a>
					<ul class="sub-menu">
						<li>
							<a _href="./pages/download/upload.html">
								<cite>上传文档</cite>
							</a>
						</li>
						<li>
							<a _href="./pages/download/download.html">
								<cite>下载文档</cite>
							</a>
						</li>
					</ul>
				</li>
				<li>
					<a href="javascript:;">
						<i class="iconfont">&#xe6ce;</i>
						<cite>报表管理</cite>
						<i class="iconfont nav_right">&#xe697;</i>
					</a>
					<ul class="sub-menu">
						<li>
							<a _href="./pages/statement/createStatement.html">
								<cite>生成报表</cite>
							</a>
						</li>
					</ul>

				</li>
			</ul>
		</div>
	</div>
	<!-- <div class="x-slide_left"></div> -->
	<!-- 左侧菜单结束 -->
	<!-- 右侧主体开始 -->
	<div class="page-content">
		<div class="layui-tab tab" lay-filter="wenav_tab" id="WeTabTip" lay-allowclose="true">
			<ul class="layui-tab-title" id="tabName">
				<li>欢迎页面</li>
			</ul>
			<div class="layui-tab-content">
				<div class="layui-tab-item layui-show">
					<iframe src='./pages/welcome.html' frameborder="0" scrolling="yes" class="weIframe"></iframe>
				</div>
			</div>
		</div>
	</div>
	<div class="page-content-bg"></div>
	<!-- 右侧主体结束 -->
	<!-- 中部结束 -->
	<!-- 底部开始 -->
	<div class="footer">
		<div class="copyright"></div>
	</div>
	<!-- 底部结束 -->
	<script type="text/javascript">
		//			layui扩展模块的两种加载方式-示例
		//		    layui.extend({
		//			  admin: '{/}//static/js/admin' // {/}的意思即代表采用自有路径，即不跟随 base 路径
		//			});
		//			//使用拓展模块
		//			layui.use('admin', function(){
		//			  var admin = layui.admin;
		//			});
		layui.config({
			base: './static/js/'
			, version: '101100'
		}).use('admin');
		layui.use(['jquery', 'admin'], function () {
			var $ = layui.jquery;
			$(function () {
				var login = JSON.parse(localStorage.getItem("login"));
				if (login) {
					if (login = 0) {
						window.location.href = './login.html';
						return false;
					} else {
						return false;
					}
				} else {
					window.location.href = './login.html';
					return false;
				}
			});
		});

	</script>
</body>
<!--Tab菜单右键弹出菜单-->
<ul class="rightMenu" id="rightMenu">
	<li data-type="fresh">刷新</li>
	<li data-type="current">关闭当前</li>
	<li data-type="other">关闭其它</li>
	<li data-type="all">关闭所有</li>
</ul>

</html>